import java.sql.SQLOutput;
import java.util.Scanner;
public class test_3_15 {
    public static void main1(String[] args)
    {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入a，b，c三个数的值：");
        double a =input.nextInt();
        double b =input.nextInt();
        double c =input.nextInt();
        double d = b * b - 4 * a * c;

        System.out.println("判别式b^2-4ac=" + d);
        if (d > 0){
            double r1 = (-b + Math.sqrt(d)) / (2 * a);
            double r2 = (-b - Math.sqrt(d)) / (2 * a);
            System.out.println("r1 = "+ r1);
            System.out.println("r2 = "+ r2);
        }
        else if(d < 0){
            System.out.println("The equation has no real roots.");
        }
        else{
            double r = -b / (2 * a);
            System.out.println("r = "+ r);
        }
    }

    public static void main2(String[] args) {
        int num1 = (int)(System.currentTimeMillis() % 10);
        int num2 = (int)(System.currentTimeMillis() /10 % 10);
        int num3 = (int)(System.currentTimeMillis() /100 % 10);
        Scanner input = new Scanner(System.in);
        System.out.println("What is "+ num1 + "+" + num2 + "+"
        + num3 + "= ?");
        System.out.print
                ("请输入答案：");
        int ret = input.nextInt();
        System.out.println(num1 + "+" + num2 + "+" + num3 + "="
        + (num1 +num2 +num3));
    }

    public static void main(String[] args) {
        System.out.print("请输入三个数：");
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();
        for (int i = 0; i < 3; i++){
            if (a > b){
                int d = a;
                a = b;
                b = d;
            }
            if (b > c){
                int d = b;
                b = c;
                c = d;
            }
        }
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }
}
